#ifndef _MOVMENT_LINE_H_
#define _MOVMENT_LINE_H_

#include "movement.h"
#include <SDL/SDL.h>

namespace animationagent {

class MovementLine : public Movement
{
public:
    MovementLine(Sint16 ox, Sint16 oy, Sint16 dx, Sint16 dy, Uint32 time_msec);
    virtual ~MovementLine();
    virtual bool update(SDL_Rect &rect);

private:
    Uint32      starttime_msec;
    Uint32      endtime_msec;
    Uint32      movetime_msec;
    Uint32      oldtime_msec;
    Sint16      orig_x, orig_y;
    Sint16      dest_x, dest_y;
    Sint16      distance_x, distance_y;
};

}

#endif
